package br.com.eduquiz.session;

import br.com.eduquiz.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("administradorGeralList")
public class AdministradorGeralList extends EntityQuery<AdministradorGeral> {

	private static final long serialVersionUID = 7453128383636323611L;

	private static final String EJBQL = "select administradorGeral from AdministradorGeral administradorGeral";

	private static final String[] RESTRICTIONS = {
		"lower(administradorGeral.email) like lower(concat('%',#{administradorGeralList.administradorGeral.email},'%'))",
		"lower(administradorGeral.nome) like lower(concat('%',#{administradorGeralList.administradorGeral.nome},'%'))",
		"status = #{administradorGeralList.administradorGeral.status}", };

	private AdministradorGeral administradorGeral = new AdministradorGeral();

	public AdministradorGeralList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public AdministradorGeral getAdministradorGeral() {
		return administradorGeral;
	}
}
